package com.shunli.cterminal.enums;

import com.examples.core.enums.BaseEnum;
import com.examples.core.enums.EnumOperations;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @className: ReqProtocolEnum
 * @description: TODO
 * @author: DAIYALU
 * @date: 2024/7/2
 * @version: 1.0
 */
@Getter
@AllArgsConstructor
public enum ReqProtocolEnum implements BaseEnum<Integer> {

    http(0, "http"),
    https(1, "https");

    private final Integer code;

    private final String desc;

    public static ReqProtocolEnum ofCodeNoisy(Integer code) {
        return EnumOperations.getByCodeNoisy(ReqProtocolEnum.class, code);
    }
}
